package com.bltec.emergency.model;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    @Id
    private Long id;
    private String username;
    private String password;
    private String sex;
    private String email;
    private String tel;
    private String phone;
    private String position;
    private Long roleId;
    private Integer departmentId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private Boolean enable;
    private Long createBy;
    private Long updateBy;
}
